<?php
header('Content-Type:text/html;charset=utf-8');
$sb=new mysqli('localhost',  'root', '','db_bbs',3306);
if ($sb->connect_errno){

       die("连接失败,出错信息是".$db->connect_error);
   }
 $sb->query("set names utf8");
  $sql="select * from t_message";
 $result=$sb->query($sql);
 $num=$result->num_rows; 
 $rows=$result->fetch_all(MYSQLI_BOTH);

   

   

   require 'index.php';
 
 
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

